<?xml version="1.0"?>
<configuration>

    <configSections>
        <sectionGroup name="spring">
            <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web"/>
            <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core"/>
        </sectionGroup>

        <sectionGroup name="common">
            <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
        </sectionGroup>

    </configSections>

    <!-- to see logging output in the attached debugger -->
    <common>
        <logging>
            <factoryAdapter type="Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging">
                <arg key="Level" value="ALL" />
            </factoryAdapter>
        </logging>
    </common>

    <system.web>
        <compilation debug="true" />

        <!--
    The following needs to be configured in order to enable Spring.NET Web Framework features
-->
        <httpModules>
            <add name="SpringModule" type="Spring.Context.Support.WebSupportModule, Spring.Web"/>
            <add name="NUnitAspExModule" type="NUnitAspEx.AspTestExecutionModule, NUnitAspEx" />
        </httpModules>

        <httpHandlers>
			<add verb="*" path="*.oaspx" type="System.Web.UI.PageHandlerFactory"/>
			<add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/>
            <add verb="*" path="*.testmethod" type="NUnitAspEx.AspTestMethodHandler, NUnitAspEx" validate="false" />
        </httpHandlers>

    </system.web>

    <!-- demonstrates how to configure IHttpModule instances -->
    <spring>
        <context>
            <resource uri="config://spring/objects"/>
        </context>
        <objects xmlns="http://www.springframework.net">

            <!-- "PreviousPage" property does not exist in net-1.1
            <object type="TransferAfterSetResult.aspx">
                <property name="Results">
                    <dictionary>
                        <entry key="save" value="transfer:TransferAfterSetResultSave.aspx" />
                    </dictionary>
                </property>
            </object>
            <object type="TransferAfterSetResultSave.aspx"/>
            -->
        </objects>
    </spring>

</configuration>
